package com.alm.token.ui.data.bean;

import android.support.annotation.NonNull;

import com.alm.token.base.BaseAdapter;

/**
 * Created by en on 2019/2/22.
 */

public class HangQingMoreData extends BaseAdapter.BaseItem implements  Comparable<HangQingMoreData> {

    /**
     * ticker : BITFINEX:BTCUSD         // Ticker名称
     * exchangeName : Bitfinex          // 交易所名称
     * base : BTC                       // 交易币种
     * currency : USD                   // 兑换币种
     * symbol : BTCUSD                  // 交易对儿标识
     * high : 4145.0                    // 最高价
     * open : 4003.3                    // 开盘价
     * close : 4027.18497404            // 收盘价（最新价）
     * low : 3918.5                     // 最低价
     * vol : 14888.91436803             // 成交量
     * degree : 0.596632                // 涨跌幅%
     * value : 5.994890074172954E7
     * changeValue : 23.88496886
     * commissionRatio : 0.19349222
     * quantityRatio : 0.36397212
     * turnoverRate : 8.4898E-4
     * dateTime : 1550805061000         // 更新时间戳（微妙）
     */

    private String ticker;
    private String exchangeName;
    private String base;
    private String currency;
    private String symbol;
    private double high;
    private double open;
    private double close;
    private double low;
    private double vol;
    private double degree;
    private double value;
    private double changeValue;
    private double commissionRatio;
    private double quantityRatio;
    private double turnoverRate;
    private long dateTime;
    private int flag;

    public String getTicker() {
        return ticker;
    }

    public void setTicker(String ticker) {
        this.ticker = ticker;
    }

    public String getExchangeName() {
        return exchangeName;
    }

    public void setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
    }

    public String getBase() {
        return base;
    }

    public void setBase(String base) {
        this.base = base;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getOpen() {
        return open;
    }

    public void setOpen(double open) {
        this.open = open;
    }

    public double getClose() {
        return close;
    }

    public void setClose(double close) {
        this.close = close;
    }

    public double getLow() {
        return low;
    }

    public void setLow(double low) {
        this.low = low;
    }

    public double getVol() {
        return vol;
    }

    public void setVol(double vol) {
        this.vol = vol;
    }

    public double getDegree() {
        return degree;
    }

    public void setDegree(double degree) {
        this.degree = degree;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public double getChangeValue() {
        return changeValue;
    }

    public void setChangeValue(double changeValue) {
        this.changeValue = changeValue;
    }

    public double getCommissionRatio() {
        return commissionRatio;
    }

    public void setCommissionRatio(double commissionRatio) {
        this.commissionRatio = commissionRatio;
    }

    public double getQuantityRatio() {
        return quantityRatio;
    }

    public void setQuantityRatio(double quantityRatio) {
        this.quantityRatio = quantityRatio;
    }

    public double getTurnoverRate() {
        return turnoverRate;
    }

    public void setTurnoverRate(double turnoverRate) {
        this.turnoverRate = turnoverRate;
    }

    public long getDateTime() {
        return dateTime;
    }

    public void setDateTime(long dateTime) {
        this.dateTime = dateTime;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "HangQingMoreData{" +
                "ticker='" + ticker + '\'' +
                ", exchangeName='" + exchangeName + '\'' +
                ", base='" + base + '\'' +
                ", currency='" + currency + '\'' +
                ", symbol='" + symbol + '\'' +
                ", high=" + high +
                ", open=" + open +
                ", close=" + close +
                ", low=" + low +
                ", vol=" + vol +
                ", degree=" + degree +
                ", value=" + value +
                ", changeValue=" + changeValue +
                ", commissionRatio=" + commissionRatio +
                ", quantityRatio=" + quantityRatio +
                ", turnoverRate=" + turnoverRate +
                ", dateTime=" + dateTime +
                '}';
    }

    @Override
    public int compareTo(@NonNull HangQingMoreData o) {
        if(this.flag>o.flag){
            return 1;
        }else  if(this.flag<o.flag){
            return -1;
        }
        return 0;
    }
}
